package org.jeecg.modules.demo.weixin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 商家商品表
 * @Author: jeecg-boot
 * @Date:   2023-11-03
 * @Version: V1.0
 */
@Data
@TableName("smt_merchant_shop_record")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="smt_merchant_shop_record对象", description="商家商品表")
public class SmtMerchantShopRecord implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**订单id*/
	@Excel(name = "订单id", width = 15)
    @ApiModelProperty(value = "订单id")
    private Integer orderId;
	/**商品名称*/
	@Excel(name = "商品名称", width = 15)
    @ApiModelProperty(value = "商品名称")
    private String shopName;
	/**单价*/
	@Excel(name = "单价", width = 15)
    @ApiModelProperty(value = "单价")
    private BigDecimal unitPrice;
	/**会员价*/
	@Excel(name = "会员价", width = 15)
    @ApiModelProperty(value = "会员价")
    private BigDecimal vipPrice;
	/**购买数量*/
	@Excel(name = "购买数量", width = 15)
    @ApiModelProperty(value = "购买数量")
    private Integer buyNum;
	/**小计总价*/
	@Excel(name = "小计总价", width = 15)
    @ApiModelProperty(value = "小计总价")
    private BigDecimal subtotalPrice;
	/**购买人*/
	@Excel(name = "购买人", width = 15)
    @ApiModelProperty(value = "购买人")
    private Integer userId;
	/**状态（1-正常 2-已退款）*/
	@Excel(name = "状态（1-正常 2-已退款）", width = 15)
    @ApiModelProperty(value = "状态（1-正常 2-已退款）")
    private Integer shopStatus;
    /**商品id*/
    @Excel(name = "商品id", width = 15)
    @ApiModelProperty(value = "商品id")
    private Integer productId;
    /**商品类型（0 平台  1 商家）*/
    @Excel(name = "商品类型（0 平台  1 商家）", width = 15)
    @ApiModelProperty(value = "商品类型（0 平台  1 商家）")
    private Integer productType;
    /**规格id*/
    @Excel(name = "规格id", width = 15)
    @ApiModelProperty(value = "规格id")
    private Integer skuId;
    /**规格名称*/
    @Excel(name = "规格名称", width = 15)
    @ApiModelProperty(value = "规格名称")
    private String skuName;


    /**商家跃动产品id*/
    @Excel(name = "商家跃动产品id", width = 15)
    @ApiModelProperty(value = "商家跃动产品id")
    private String merStoreId;

}
